package com.example.service;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userdetails.UsernameNotFoundException;
import org.springframework.stereotype.Service;

import com.example.dao.SysUserRepository;
import com.example.entity.Factor;
import com.example.entity.Insurance;
import com.example.entity.InsuranceForm;
import com.example.entity.Product;
import com.example.entity.SysUser;


public interface ProductCenterService {

	String[] createCalculator(HttpServletRequest request)throws Exception;
	
	/**
	 * 查出产品详情
	 */
	Product findProductDetail(Product product)throws Exception;
	
	/**为保单注入因子**/
	public void injectFactor(Insurance one)throws Exception;
	
	/**因子数据类型为表单时，为其注入对应的表单**/
	public void injectFactorOptions(Factor factor)throws Exception;
	
	/**保费计算**/
	void calculate(InsuranceForm form)throws Exception;
	
	/**整理factor**/
	void sortFactor(InsuranceForm form)throws Exception;
	
	/**save**/
	void saveForm(InsuranceForm form);

}
